﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class HuangGuanImgSmallControl : MonoBehaviour {

    public GameObject tong;
    public GameObject yin;
    public GameObject jin;

	// Use this for initialization
	void Start () {
		
	}

    private void allHide()
    {
        tong.SetActive(false);
        yin.SetActive(false);
        jin.SetActive(false);
    }

    public void show(string str)
    {
        allHide();
        if (str == "tong")
        {
            tong.SetActive(true);
        }
        else if (str == "yin")
        {
            yin.SetActive(true);
        }
        else if (str == "jin")
        {
            jin.SetActive(true);
        }
    }
}
